﻿using System;
using Model;
using Common;
using System.Collections.Generic;
using System.Windows.Forms;

namespace Controller
{
   
   public  class ServerExplorerBO
    {
        /// <summary>
        /// 删除配置
        /// </summary>
        /// <param name="ConfigName"></param>
        public void DeleteConfig(string ConfigName)
        {
            ServerExplorerDAO.DeleteMenuConfig(ConfigName);
            ServerExplorerDAO.DeleteBuildInfo(ConfigName);
        }

      

       /// <summary>
       /// 读取所有保存的连接信息
       /// </summary>
       /// <param name="xmlPath">配置文件路径</param>
       /// <param name="tree">需要绑定的TreeView</param>
       public void LoadMenuConfigToTree(TreeView tree,ImageList imgList)
       {
           ServerExplorerDAO.LoadMenuConfigToTree(PubConstant.ConfigPath, PubConstant.ServerMenuConfigName, PubConstant.ConfigPath, PubConstant.ServerBuildConfigName, tree, imgList);
       }
    }
}
